#include "RpcController.h"

RpcController::RpcController() {
    Reset();
}

void RpcController::Reset() {
    m_error.clear();
    m_false = false;
}

bool RpcController::Failed() const {
    return m_false;
}

std::string RpcController::ErrorText() const {
    return m_error;
}

void RpcController::StartCancel() { }

void RpcController::SetFailed(const std::string& reason) {
    m_false = true;
    m_error = reason;
}

bool RpcController::IsCanceled() const {
    return true;
}

void RpcController::NotifyOnCancel(google::protobuf::Closure* callback) {
    
}